package com.example.rlw.mvpplugintest.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.rlw.mvpplugintest.R;
import com.example.rlw.mvpplugintest.bean.UserBean;

import java.util.List;

/**
 * Created by rlw on 2018/10/17.
 */

public class HomeAdapter extends BaseQuickAdapter<UserBean, BaseViewHolder> {
    public HomeAdapter(int layoutResId, @Nullable List<UserBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, UserBean item) {
        helper.setText(R.id.name, item.getUserName());
    }
}
